﻿<Window x:Class="Farkhod.QuickDataViewer.ConnectionStringEditor"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Unable to connect to DB Server. Please verify your connection string." Height="164" Width="542" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50*"/>
            <RowDefinition Height="40*"/>
            <RowDefinition Height="40*"/>
            <RowDefinition Height="40*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="12*"/>
            <ColumnDefinition Width="28*"/>
            <ColumnDefinition Width="10*"/>
            <ColumnDefinition Width="28*"/>
        </Grid.ColumnDefinitions>
        <Label Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Right" Content="Server:" Margin="0,10,0,0"/>
        <Label Grid.Column="2" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Right" Content="Database:" Margin="0,10,0,0"/>
        <TextBox Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" Height="24" Name="txtServer" TabIndex="0" Margin="2,10,0,0"/>
        <TextBox Grid.Column="3" Grid.Row="0" VerticalAlignment="Center" Height="24" Name="txtDBName" TabIndex="1" Margin="2,10,0,0"/>
        <Label Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" Content="Authenticaion:"/>
        <RadioButton Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" Content="SQL Server" Name="rbSQLAuth" IsChecked="True" Checked="rbSQLAuth_Checked" TabIndex="2" />
        <Label Grid.Column="2" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" Content="Login:" Name="lblLogin" />
        <TextBox Grid.Column="3" Grid.Row="1" VerticalAlignment="Center" Height="24" Name="txtDBLogin" TabIndex="4" Margin="2"/>
        <RadioButton Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" Content="Windows" Name="rbWinAuth" Checked="rbWinAuth_Checked" TabIndex="3"/>
        <Label Grid.Column="2" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Right" Content="Password:" Name="lblPass"/>
        <TextBox Grid.Column="3" Grid.Row="2" VerticalAlignment="Center" Height="24" Name="txtDBPassword" Text="" TabIndex="5" Margin="2"/>
        <Button Grid.Column="3" Grid.Row="3" Content="OK"  Margin="2" IsDefault="True" Name="btnOK" Click="btnOK_Click"/>
    </Grid>
</Window>
